package com.xinqi.common.third.sms;

import com.aliyuncs.IAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import com.xinqi.common.third.sms.help.SmsHelp;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 短信配置
 *
 * @author linkai
 * @date 2023/2/21
 */
@Configuration
@EnableConfigurationProperties(value = SmsProperties.class)
public class SmsConfig {

    @Bean
    public SmsHelp smsHelp(SmsProperties smsProperties) throws Exception {
        return new SmsHelp(smsProperties);
    }

}
